package com.amado.course13;
/**
 * 教练员
 * @author Administrator
 *
 */
public class VariateThree {
	public static void main(String[] args) {
		//之前的做法
		String[] studentOne = new String[] {"张三","20"};
		System.out.println(studentOne[0]);
		System.out.println(studentOne[1]);
		
		//现在的做法
		VariateThreeStudent studentVariate = new VariateThreeStudent();
		studentVariate.name="张三";
		studentVariate.sex=1;
		System.out.println(studentVariate.name);
		System.out.println(studentVariate.sex);
	}
}
